package ej1.Main;

import java.io.File;
import java.util.Iterator;

public class Program {
	
	public static void main(String args[]){
		
		InputParser parser = new InputParser();
		
		Iterable<ProblemInstance> problemInstances = parser.Parse("p1.in");
		
		ProblemSolver solver = new ProblemSolver();
		
		Iterable<MutationPath> solutions = solver.solve(problemInstances);
		
		File outputFile = new File("p1.out");
		outputFile.delete();
		
		for (Iterator<MutationPath> i = solutions.iterator(); i.hasNext(); )
			i.next().saveAs("p1.out");
		
	}

}
